package com.wbk.lotterysystemlotteryservice.commons.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyRecordDTO implements Serializable {
    @ApiModelProperty(value = "抽奖活动id")
    private Integer id;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dueTime;

    @ApiModelProperty(value = "抽奖标题")
    private String lotteryTitle;

    @ApiModelProperty(value = "奖品")
    private List<PrizeDTO> prizeDTOList;

    @ApiModelProperty(value = "抽奖状态")
    private String result;

}
